package simple.enums;

import simple.nmea.IDilutionOfPrecision;

public abstract class DilutionOfPrecision implements IDilutionOfPrecision {
	
	private double dilutionOfPrecision;
	
	public DilutionOfPrecision(double dilutionOfPrecision) {
		this.dilutionOfPrecision = dilutionOfPrecision;
	}
	
	@Override
	public double getDOP() {
		return this.dilutionOfPrecision;
	}

	@Override
	public DilutionOfPrecisionGrade getGrade() {
		return DilutionOfPrecisionGrade.parseGrade(this.dilutionOfPrecision);
	}

}
